<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

	<div class="table-responsive">
		<table class="cntable table table-bordered dataTable table-employee ">
			<thead>
				<tr class="success" >
					
					<th style="width:50px">序号</th>			
					<th style="width:80px">采购单号</th>
					<th style="width:60px">供应商</th>
					<th style="width:50px">采购数</th>
					<th style="width:50px">采购金额</th>
					<th style="width:60px">采购员</th>
					<th style="width:60px">制单人</th>
					<th style="width:60px">采购时间</th>
					<th style="width:60px">状态</th>
					<th style="width:60px">备注</th>
				</tr>
			</thead>
			<tbody>
			<c:forEach var="purchase" items="${purchases}" varStatus="status">
				<tr style="height:45px" data-id="${purchase.purchaseId}">
					
					<td>${status.index+1 }</td>
					<td>${purchase.purchaseNo }</td>
					<td>${purchase.supplier.supplierName }</td>
					<td>${purchase.purchaseNum }</td>
					<td>${purchase.purchaseMoney }</td>
					
					<td>${purchase.purchaseName }</td>
					<td id="allMoney">${purchase.createUserName}</td>
					<td>
						<fmt:formatDate value="${purchase.createDate}" type="date" dateStyle="default" pattern="YY-MM-dd HH:mm"/>
					</td>
					<td style="color:red">
						<t:provider packageName="purchase" enumClassName="PurchaseState" value="${purchase.purchaseState }"/>
					</td>
					<td></td>
				</tr>
				</c:forEach>
			
				
			</tbody>
			<tfoot >
				<tr   class="active">
					<th class="pager-th absolute-pos">
						<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
					</th>
				</tr>
			</tfoot>
		</table>
	</div>

